home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2001 January / maximum-cd-2001-01.iso / Hard Disk / Test-Run / Test-Run 210.exe / Control / Alert2.bat < prev    next >
Encoding:
DOS Batch File  |  1999-08-10  |  3.1 KB  |  72 lines

  1. @echo off 
  2. rem Alert2.bat (all -ok files, all cha files)
  3. :Alert2
  4. echo.
  5. echo.
  6. echo         ╔════════════════════════════════════════════════════════════════╗
  7. echo         ║            *** TEST-RUN by BB INSTALLATION ALERT ***           ║
  8. echo         ║ The current Test-Run mode is ON! TEST-RUN may have previously  ║
  9. echo         ║ been installed on this system, but uninstalled in Test-Run ON  ║
  10. echo         ║ mode, OR you may be just renewing the Test-Run program files.  ║
  11. echo         ║                                                                ║
  12. echo         ║ If you were unaware that the Test-Run mode was ON, you should  ║
  13. echo         ║ erase the Test-Run files that cause the program to be in this  ║
  14. echo         ║ mode,  otherwise Test-Run will load the last copy made of the  ║
  15. echo         ║ Registry when you SWITCH! If you are  refreshing the Test-Run  ║
  16. echo         ║ program files,  and were aware that the mode was ON,  you may  ║
  17. echo         ║ disregard the advice to erase the previous Test-Run files and  ║
  18. echo         ║ select NO.                                                     ║
  19. echo         ╚════════════════════════════════════════════════════════════════╝
  20. echo.
  21. echo.
  22. choice .                  Delete previous TEST-RUN files  
  23. if errorlevel 2 goto :confirm
  24. if errorlevel 1 goto :cleanup
  25.  
  26. :cleanup
  27. if exist c:\windows\tr~winin.cha     attrib c:\windows\tr~winin.cha -r -s -h
  28. if exist c:\windows\tr~systm.cha     attrib c:\windows\tr~systm.cha -r -s -h
  29. if exist c:\windows\tr~user.cha      attrib c:\windows\tr~user.cha  -r -s -h
  30. if exist c:\windows\tr~sysin.cha     attrib c:\windows\tr~sysin.cha -r -s -h
  31. if exist c:\windows\tr~proin.cha     attrib c:\windows\tr~proin.cha -r -s -h
  32. if exist c:\tr~autox.cha             attrib c:\tr~autox.cha         -r -s -h
  33. if exist c:\tr~confg.cha             attrib c:\tr~confg.cha         -r -s -h
  34. if exist c:\tr~msdos.cha             attrib c:\tr~msdos.cha         -r -s -h
  35.  
  36. if exist c:\windows\tr~winin.cha     del c:\windows\tr~winin.cha
  37. if exist c:\windows\tr~systm.cha     del c:\windows\tr~systm.cha
  38. if exist c:\windows\tr~user.cha      del c:\windows\tr~user.cha
  39. if exist c:\windows\tr~sysin.cha     del c:\windows\tr~sysin.cha
  40. if exist c:\windows\tr~proin.cha     del c:\windows\tr~proin.cha
  41. if exist c:\tr~autox.cha             del c:\tr~autox.cha
  42. if exist c:\tr~confg.cha             del c:\tr~confg.cha
  43. if exist c:\tr~msdos.cha             del c:\tr~msdos.cha
  44.  
  45. if exist c:\windows\test~run.bmp     del c:\windows\test~run.bmp
  46.  
  47. if exist c:\windows\command\tr-by-bb\folder\0n.lnk del c:\windows\command\tr-by-bb\folder\0n.lnk
  48. if exist c:\windows\command\tr-by-bb\folder\0ff.lnk del c:\windows\command\tr-by-bb\folder\0ff.lnk
  49.  
  50. goto :welcome
  51.  
  52. :confirm
  53. echo.  
  54. echo         If you were NOT aware that the Test-Run was in ON mode, you should
  55. echo         delete the Test-Run files left on your disk from the previous use.
  56. echo.
  57. choice .          *LAST CHANCE*          Delete previous TEST-RUN files
  58.  
  59. if errorlevel 2 goto :welcome
  60. if errorlevel 1 cls
  61. goto :alert2 
  62.  
  63.  
  64. :Welcome
  65. start /max Welcome.pif
  66. goto :exit
  67.  
  68. :exit
  69. exit
  70.  
  71.  
  72.